package com.yanfan.http.client;

import com.alibaba.fastjson2.JSONObject;
import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Var;

@BaseRequest(baseURL = "http://ip-api.com")
public interface IpApiService {

    @Get(url = "/json/{ip}?lang=zh-CN")
    JSONObject getLngLatByIp(@Var("ip") String ip);
}
